job_type :rake, "cd :path && :environment_variable=:environment bundle exec rake :task --silent :output"
set :output, "#{path}/log/whenever.log"


every 1.days, at: '2:00 AM' do
  rake 'statistic:timetable'
end
every 1.days, at: '1:00 AM' do
  rake 'statistic:course'
end
# every 1.weeks, at: '4:00 AM' do
#   rake "whenever:weekly"
# end
every 1.months, at: '2:00 AM' do
  rake "whenever:salary"
end


